package seven;

import java.text.SimpleDateFormat;
import java.util.*;

public class Seven {
	public static void main(String[] args) {
		Calendar date = Calendar.getInstance();
		SimpleDateFormat format = new SimpleDateFormat("yyyy/MM/dd");
		int year = date.get(Calendar.YEAR);
		date.set(year, 0, 1);
		while (date.get(Calendar.YEAR) < year + 1) {
			if (date.get(Calendar.WEEK_OF_MONTH) == 1
					&& date.get(Calendar.DAY_OF_WEEK) == 7) {
				Date d = date.getTime();
				String s = format.format(d);
				System.out.println(s);

			}
			date.add(Calendar.DAY_OF_MONTH, 1);
		}

	}
}
